<table>
<?php
foreach($results->result() as $row){
	echo "<tr>";
		echo "<td>Kode</td><td>" . $row->kode . "</td>";
	echo "</tr>";

	echo "<tr>";
	echo "<td>No Agenda</td><td>" . $row->no_agenda . "</td>";
	echo "</tr>";

	echo "<tr>";
	echo "<td>Tgl. Surat</td><td>" . tgl_jam_sql($row->tgl_surat) . "</td>";
	echo "</tr>";

	echo "<tr>";
	echo "<td>Asal Surat</td><td>" . $row->dari . "</td>";
	echo "</tr>";

	echo "<tr>";
	echo "<td>Nomor</td><td>" . $row->no_surat . "</td>";
	echo "</tr>";

	echo "<tr>";
	echo "<td>Isi Ringakas</td><td>" . $row->isi_ringkas . "</td>";
	echo "</tr>";
//<a href='".base_URL()."upload/surat_masuk/".$b->file."' target='_blank'>".$b->file."</a>"
	echo "<tr>";
	echo "<td>File</td><td><a href='" . base_url() . "upload/surat_masuk/" . $row->file . "'>" . $row->file .  "</a></td>";
	echo "</tr>";
}

?>
</table>